c programming Language [closed]

Posted by ash89 on Stack Overflow See other posts from Stack Overflow or by ash89
Published on 2010-04-19T12:46:40Z Indexed on 2010/04/19 12:53 UTC
Read the original article Hit count: 99

Filed under:
|
|

Write a program in C program to find the sum of the following: The input contain a sequence of two or more positive integers terminated by -1. Write a piece of code to count the ‘incidences’ in this sequence (i.e. the number of pairs of equal, adjacent numbers). For example, the following sequence contains 4 incidences: 4 2 9 9 3 7 7 7 3 3 -1

© Stack Overflow or respective owner

Related posts about c

    Related posts about programming-languages